<?php
declare(strict_types=1);
namespace SixShop\Message\Enum;

enum NotificationsTypeEnum:int
{
    //类型：1-系统通知，2-活动通知，3-订单通知，4-物流通知，5-其他
    case SYSTEM = 1;
    case ACTIVITY = 2;
    case ORDER = 3;
    case LOGISTICS = 4;
    case OTHER = 5;

    public function toString(): string
    {
        return match ($this) {
            self::SYSTEM => '系统通知',
            self::ACTIVITY => '活动通知',
            self::ORDER => '订单通知',
            self::LOGISTICS => '物流通知',
            self::OTHER => '其他通知',
        };
    }
}
